package cn.cai.pethome.system.domain;


import cn.cai.pethome.base.domain.BaseDomain;
import cn.cai.pethome.dept.domain.Department;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaocai
 * @since 2022-09-05
 */
@Data
public class Menu extends BaseDomain {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单名称
     */
    private String name;
    /**
     * 当前菜单对应的vue组件路径
     */
    private String component;
    /**
     * 菜单地址
     */
    private String url;
    /**
     * 菜单图标
     */
    private String icon;
    /**
     * 当前菜单在同组内的排序
     */
    private Integer index;
    /**
     * 父级菜单id
     */
    private Long parent_id;
    /**
     * 描述
     */
    private String intro;
    /**
     * 状态：1表示启用  0表示禁用
     */
    private Integer state;


    private Menu parent;//父级


    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();

}
